package entity;

import java.util.Date;

public class UserP{
	private int p_id;
	private String pname;
	private String password;
	private int type;
	private Date P_date;
	
	public UserP() {
		super();
	}

	
	public UserP(String pname, String password) {
		super();
		this.pname = pname;
		this.password = password;
	}



	public UserP(int p_id, String pname, String password, int type, Date p_date) {
		super();
		this.p_id = p_id;
		this.pname = pname;
		this.password = password;
		this.type = type;
		P_date = p_date;
	}

	public int getP_id() {
		return p_id;
	}

	public void setP_id(int p_id) {
		this.p_id = p_id;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Date getP_date() {
		return P_date;
	}

	public void setP_date(Date p_date) {
		P_date = p_date;
	}

	@Override
	public String toString() {
		return "UserP [pname=" + pname + ", password=" + password + "]";
	}
	
	public String toString(String a) {
		return "UserP [p_id=" + p_id + ", pname=" + pname + ", password=" + password + ", type=" + type + ", P_date="
				+ P_date + "]";
	}
	
}
